package com.vue.vuedemo.service.impl;

import com.vue.vuedemo.dao.SportsCircleMapper;
import com.vue.vuedemo.pojo.Sportscircle;
import com.vue.vuedemo.pojo.Zhuanqu;
import com.vue.vuedemo.service.SportsCircleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("SportsCircleService")
public class SportsCircleServiceImpl implements SportsCircleService {

    @Resource
    SportsCircleMapper sportsCircleMapper;

    @Override
    public List<Sportscircle> findAll() {
        return sportsCircleMapper.findAll();
    }

    @Override
    public void updateZan(Integer sId) {
        sportsCircleMapper.updateZan(sId);
    }

    @Override
    public void addSports(Sportscircle sportscircle) {
        sportsCircleMapper.addSports(sportscircle);
    }

    @Override
    public List<Sportscircle> pIdFindAll(Integer pId) {
        return sportsCircleMapper.pIdFindAll(pId);
    }

    @Override
    public Sportscircle sIdFindAll(Integer sid) {
        return sportsCircleMapper.sIdFindAll(sid);
    }

    @Override
    public void dellSports(Integer sid) {
        sportsCircleMapper.dellSports(sid);
    }

    @Override
    public List<Sportscircle> nameFindAll(String sName) {
        return sportsCircleMapper.nameFindAll(sName);
    }

    @Override
    public List<Sportscircle> stypeFindAll(String sType) {
        return sportsCircleMapper.stypeFindAll(sType);
    }

    @Override
    public List<Zhuanqu> ZhuanQuFindAll() {
        return sportsCircleMapper.ZhuanQuFindAll();
    }

    @Override
    public void zqAdd(Zhuanqu zhuanqu) {
        sportsCircleMapper.zqAdd(zhuanqu);
    }

    @Override
    public void zaDel(Integer id) {
        sportsCircleMapper.zaDel(id);
    }

    @Override
    public void tuijianzq(Integer id) {
        sportsCircleMapper.tuijianzq(id);
    }

    @Override
    public void jiangjizq(Integer id) {
        sportsCircleMapper.jiangjizq(id);
    }

    @Override
    public List<Zhuanqu> ZhuanQuIndexNumFindAll() {
        return sportsCircleMapper.ZhuanQuIndexNumFindAll();
    }

    @Override
    public Sportscircle sportscircleContext(String context) {
        return sportsCircleMapper.sportscircleContext(context);
    }
}
